package com.withyou.euraka.provide.factory;

import java.util.List;

import com.withyou.euraka.provide.api.common.ResultVo;
import com.withyou.euraka.provide.entity.UserEntity;

public class ResultVoFactory {
	
	public static ResultVo<Boolean> getSuccess(){
		ResultVo<Boolean> result = new ResultVo<Boolean>(null,true,null,null);
		return result;
	}
	
	public static ResultVo<Boolean> getError(){
		ResultVo<Boolean> result = new ResultVo<Boolean>(null,false,null,null);
		return result;
	}
	
	
	public static ResultVo<List<UserEntity>> getUserEntitysSuccess(List<UserEntity> data){
		ResultVo<List<UserEntity>> result = new ResultVo<List<UserEntity>>(data,true,null,null);
		return result;
	}
	
	public static ResultVo<List<UserEntity>> getUserEntitysError(Integer errorCode, String errorMsg){
		ResultVo<List<UserEntity>> result = new ResultVo<List<UserEntity>>(null,false,errorMsg, errorCode);
		return result;
	}
}
